package com.yang.moyu.meta.config.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Create by 10296 on 2021/12/15
 *
 * @Description:
 */
@Component
@ConfigurationProperties(prefix = "meta.weixin")
public class WeXinProperties {

    @Value("${meta.weixin.app-id}")
    private String appId;
    @Value("${meta.weixin.appsecret}")
    private String appsecret;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    @Override
    public String toString() {
        return "WeXinProperties{" +
                "appId='" + appId + '\'' +
                ", appsecret='" + appsecret + '\'' +
                '}';
    }
    
}
